{include file="../Index/header.html"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<link rel="stylesheet" href="{$smarty.const.__PUBLIC__}/css/question.css" />
	<script type="text/javascript" src="{$smarty.const.__PUBLIC__}/js/question.js"></script>
</head>
<body>
	
	<div id='location'>
		<a href="">全部分类</a>
			&gt;&nbsp;电脑&nbsp;&nbsp;
			&gt;&nbsp;<a href="">硬件</a>&nbsp;&nbsp;
	</div>
<div class="SSwd">
<!--------------------中部-------------------->
	<div id='center-wrap'>
		<div id='center'>
			<div id='left'>
				<div id='answer-info'>
					<!-- 如果没有解决用wait -->
					<!-- 判断是不是自已来回答 ,如果是自已，也看不到回答框-->
					
			
						<!-- 这里是判断，如果，解决就显示解决了的CSS，没有就显示没有解决 -->
					
					{if $bestanswer==0}
					<div class='ans-state wait'></div>
					{else}
					<div class='ans-state2'></div>
					{/if}
					<div class='answer'>
						<p class='ans-title'>{$memberinfo.content}
							<b class='point'>{$memberinfo.reward}</b>
						</p>
					</div>
					<ul>
						<li><a href="">{$memberinfo.username}</a></li>
						<li><i class='level lv1' title='Level 1'></i></li>
						<li>{$memberinfo.time|date_format:'%Y-%m-%d'}</li>
				
					</ul>
					<!-- 如果已被采纳，就把回答框关了 -->
					{if $bestanswer==0}
					<div class='ianswer'>
						{if $memberinfo.username==$smarty.session.name}
						<form action="index.php?c=Show&m=answer" method='POST'>
							<span style="color:red; font-size: 14px;font-weight:700;">么么哒，您无法回答自已的问题，耐心等待热心的网友们来帮助您吧^_^:</span>
							
						</form>
						{else}
						<form action="index.php?c=Show&m=answer" method='POST'>
							<p id="inputanswer">我来回答</p>
							<textarea name="content"></textarea>
							<input type="hidden" name='asid' value='{$memberinfo.asid}'>
							<input type="submit" value='提交回答' id='anw-sub'/>
						{/if}
					</div>
					{else}
					
					<!-- 满意回答 -->
					<div class='ans-right'>
						
						<p class='title'><i></i><span></span></p>
						
						<!-- <p class='ans-cons'>很不错！</p> -->
						<dl>
							<dt>
								<a href=""><img src="{$smarty.const.__PUBLIC__}//images/picico.png" width='48' height='48'/></a>
							</dt>
							<dd>
								<a href="">用户</a>
							</dd>
							<dd><i class='level lv1'></i>
							{if $bestanswer==0}
							<span>｛没有最佳答案哦，亲，您完善回答哦^!^｝</span>
							{else}
							{foreach key=best_k item=best_v from=$bestanswer}
								<span>｛最佳答案｝：{$best_v.content}</span>
							{/foreach}
							{/if}
							</dd>
							<dd>20%</dd>
						</dl>

					</div>
					{/if}<!-- 满意回答 -->
				</div>

				<div id='all-answer'>
					<div class='ans-icon'></div>
					<p class='title'>共 <strong>20</strong> 条回答</p>
					<ul>
					{if $answerList==''}
					<li>
							<div class='face'>
								<a href="">
									<img src="./Images/noface.gif" width='48' height='48'/>
								</a>
							</div>
							<div class='cons blue'>
								<p>暂时还没有答案，等您来完善哦，<span style='color:#888;font-size:12px'>&nbsp;&nbsp;(1900.1.1)</span></p>
							</div>
							
								<a href="" class='adopt-btn'>采纳</a>
							
						</li>
					{else}
					{foreach key=k item=v from=$answerList}
						<li>
						
							<div class='face'>
								<a href="">
									<img src="{$smarty.const.__PUBLIC__}/images/picico.png" width='48' height='48'/>
								</a>
							</div>
							<div class='cons blue'>
								<p>{$v.content}<span style='color:#888;font-size:12px'>&nbsp;&nbsp;(1900.1.1)</span></p>
							</div>
							{if $smarty.session.uid==$memberinfo.uid}
								<a href="{$smarty.const.__APP__}?c=Show&m=accept&anid={$v.anid}" class='adopt-btn'>采纳</a>
								{else}
								<a href="#inputanswer" class='adopt-btn'>完善答案</a>
								{/if}
						</li>
						{/foreach}	
						{/if}
						<!-- <li>
							<div class='face'>
								<a href="">
									<img src="./Images/noface.gif" width='48' height='48'/>
								</a>
							</div>
							<div class='cons blue'>
								<p>真不错啊！<span style='color:#888;font-size:12px'>&nbsp;&nbsp;(1900.1.1)</span></p>
							</div>
							
								<a href="" class='adopt-btn'>采纳</a>
							
						</li> -->
					</ul>
					<div class='page'>
						<a href="">1</a>
						<a href="">2</a>
						<a href="">3</a>
						<a href="">4</a>
					</div>
				</div>
				<div id='other-ask'>
					<p class='title'>待解决的相关问题</p>
					<table>
					{foreach key=kwait item=vwait from=$waitYouAns}
						<tr>
							<td class='t1'><a href="{$smarty.const.__APP__}?c=Show&asid={$vwait.asid}">{$vwait.content}</a></td>
							<td>20&nbsp;回答</td>
							<td>1900.1.1</td>
						</tr>
						{/foreach}
					</table>
				</div>
			</div>
		<!-- 右侧 -->
		<div id='right'>
		{if $now_memberCenter==0}
			<div class='userinfo'>
			请先登陆
			</div>

		{else}
		<div class='userinfo'>
			<dl>
				<dt>
					<a href="" ><img style="border-radius:50%" src="{$icoinfo}" width='48' height='48' alt="占位符"/></a>
				</dt>
				<dd class='username'>
					<a href="">
						<b>{$smarty.session.name}</b>
					</a>
					<a href="">
						<i class='level lv1' title='Level 1'></i>
					</a>
				</dd>
				<dd>金币：<a href="" style="color: #888888;">{$now_memberCenter.point}<b class='point'></b></a></dd>
				<dd>经验值：{$now_memberCenter.exp}</dd>
			</dl>
			<table>
				<tr>
					<td>回答数</td>
					<td>采纳率</td>
					<td class='last'>提问数</td>
				</tr>
				<tr>
					<td><a href="">{$now_memberCenter.answer}</a></td>
					<td><a href="">20%</a></td>
					<td class='last'><a href="">{$now_memberCenter.ask}</a></td>
				</tr>
			</table>
			<ul>
				<li><a href="">我提问的</a></li>
				<li><a href="">我回答的</a></li>
			</ul>
		</div>
		{/if}
		<!-- <div class='r-login'>
			<span class='login'><i></i>&nbsp;登录</span>
			<span class='register'><i></i>&nbsp;注册</span>
		</div> -->
	<div class='clear'></div>
	<div class='star'>
		<p class='title'>后盾问答之星</p>
		<span class='star-name'>回答问题最多的人</span>
			<div class='star-info'>
				<div>
					<a href="" class='star-face'>
						<img src="{$icoAnswerMore}" width='48px' height='48px' alt="头像站位"/>
					</a>
					<ul>
						<li><a href="">{$moreanswer.username}</a></li>
						<i class='level lv1' title='Level 1'></i>
					</ul>
				</div>
				<ul class='star-count'>
					<li>回答数：<span>{$moreanswer.answer}</span></li>
					<li>采纳率：<span>50%</span></li>
				</ul>
			</div>
		<span class='star-name'>红验最多的人</span>

		<div class='star-info'>
			<div>
				<a href="" class='star-face'>
					<img src="{$icoExpMore}" width='48px' height='48px' alt="头像站位"/>
				</a>
				<ul>
					<li><a href="">{$moreexp.username}</a></li>
					<i class='level lv1' title='Level 1'></i>
				</ul>
			</div>
			<ul class='star-count'>
				<li>回答数：<span>{$moreexp.answer}</span></li>
				<li>红验数:<span>{$moreexp.exp}</span></li>
			</ul>
		</div>
	</div>
	<div class='star-list'>
		<p class='title'>后盾问答助人光荣榜</p>
		<div>
			<ul class='ul-title'>
				<li>用户名</li>
				<li style='text-align:right;'>回答过的条数</li>
			</ul>
			<ul class='ul-list'>
			{foreach key=kanswer item=vanswer from=$moreansweruser}
				<li>
					<a href=""><i class='rank r1'></i>{$vanswer.username}</a>
					<span>{$vanswer.answer}</span>
				</li>
				{/foreach}
				<!-- <li>
					<a href=""><i class='rank r1'></i>houdunwang.com</a>
					<span>100</span>
				</li>
				<li>
					<a href=""><i class='rank r2'></i>houdunwang.com</a>
					<span>100</span>
				</li>
				<li>
					<a href=""><i class='rank r3'></i>houdunwang.com</a>
					<span>100</span>
				</li>				 -->
			</ul>
		</div>
	</div>
</div>
</div>
<!-- ---右侧结束---- -->
			
		</div>

	</div>
	
<!--------------------中部结束-------------------->

<!-- 底部 -->
	<div id='bottom'>
		<p>Copyright © 2013 Qihoo.Com All Rights Reserved 后盾网</p>
		<p>京公安网备xxxxxxxxxxxx</p>
	</div>
<!--[if IE 6]>
    <script type="text/javascript" src="./Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
</body>
</html>
<!-- 底部结束 -->